package com.hs.srm.admin.modules.harmfulsubstance.service;

import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.harmfulsubstance.entity.EnvironCommitmentEntity;
import com.hs.srm.admin.modules.vendor.vo.VendorCertificateVO;
import com.hs.srm.common.utils.PageUtils;
import com.hs.srm.common.utils.R;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author ych
 * @since 2020-03-05 14:25:17
 */

public interface EnvironCommitmentService extends IService<EnvironCommitmentEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R save(EnvironCommitmentEntity entity, HttpServletRequest request, String sapCode, String vendorName) throws IOException, ServletException;

    // 通过供应商代码查询资质证书
    List<VendorCertificateVO> findFilePath(String vendorCode);


}